/**
 * Copyright (c) 2011 Tomi Paananen.
 *
 * Part of Quick Gestures engine library.
 */

#ifndef QGCOMMON_H
#define QGCOMMON_H

// Qt includes
#include <QMetaType>
#include <QPoint>
#include <QPolygon>
#include <QString>

// Type definitions
typedef QPolygon PointList;


namespace QGEngine {

    // CONSTANTS

    const QPoint BreakPoint(-1, -1);

    const QString DefaultPath(
#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
            "/home/user/MyDocs"
#elif defined(Q_OS_SYMBIAN)
            "C:/"
#elif defined(Q_OS_WIN)
            "C:/"
#else
            "/"
#endif
            );

    // ERROR CODES

    // Common
    const int NoError(0);
    const int UndefinedError(-10);
    const int InvalidArgument(-11);
    const int ThreadBusy(-20);

    // ClassifierThread
    const int ClassifierNotSet(-100);
    const int GestureSetNotSet(-101);
    const int GestureNotSet(-102);
    const int MaxRecognitionErrorExceeded(-103);

    // StorageManager {
    const int FileError(-110);

    // XmlParser
    const int InvalidIODevice(-120);
    const int UnexpectedElement(-121);
    const int InvalidType(122);
    const int IncompleteData(-123);
};


#endif // QGCOMMON_H

// End of file.
